package com.yhsimon.visitor;

/**
 * @author： YHSimon
 * @date： 2021-10-11 10:40
 */
public class Man extends Person {
    private String name;
    private int status=0;

    public Man(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public void accept(Action action) {
        action.getManResult(this);
        this.status=1;
    }
}
